package org.example.implaoptwoway.extendAbstratAdvisor;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class Main
{

    public static void main(String[] args)
    {
        ApplicationContext context = SpringApplication.run(Main.class, args);
        //获取代理对象
        OrderDao orderDao = context.getBean("orderDao", OrderDao.class);
        //调用 OrderDao 中的各个方法
        orderDao.add();
        orderDao.adds();
        orderDao.delete();
        orderDao.get();
        orderDao.modify();
    }
}